﻿using System;
using biz.ritter.javapi.nio;
using Nofs.Net.Common.Interfaces.Domain;

namespace Nofs.Net.Common.Interfaces.Cache
{
    public interface IFileCache
    {
        void Write(ByteBuffer buffer, long offset);//throws Exception;
        void Read(ByteBuffer buffer, long offset);//throws Exception;
        void Truncate(long length);//throws Exception;
        void Commit();//throws Exception;
        int GetFileSize();//throws Exception;
        IFileObject File();
    }
}
